package com.sdutcm.health_bigdata_demo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class MVCConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/index").setViewName("index");
        registry.addViewController("/get").setViewName("get");
        registry.addViewController("/add_x").setViewName("add_x");

        registry.addViewController("/add_g").setViewName("add_g");
        registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
    }
}
